POV-Ray : Newsgroups : moray.win : Plugin idea : Re: Plugin idea Server Time
29 Jul 2024 14:16:53 EDT (-0400)
  Re: Plugin idea  
From: Twyst
Date: 15 Mar 1999 16:01:07
Message: <36ed7513.0@news.povray.org>
I think you both have misunderstood the concept that I was trying to
present.

Java has nothing to do with this. I am talking about a plugin that will read
a text file and according to what it has in it, it draws a dialog.

***NOTE***

this is meant to allow non-programmers to write their own plugins, using a
specified format.
*** Java is NOT good for this.. ... ..

the format doesn't matter - but the idea is that John Q. Public can create a
text file that has his custom "plugin" and then send it to his buddy who
also has the plugin.

Here's an example mIRC script that will create a dialog -- this is sort of
what I'm thinking of.:

Dialog AllDialog {

  Title "Example Dialog Window"
  Size -1 -1 300 200

  Button "Ok", 1, 5 175 55 20, ok
  Button "Cancel", 2, 65 175 55 20, cancel

  Box "Box 1", 3, 5 5 140 70
  Box "Box 2", 4, 5 80 140 85
  Box "Box 3", 5, 155 130 140 60

  Radio "Item 1 - Dotted Radio", 6, 10 20 130 15, group
  Radio "Item 2 - Dotted Radio", 7, 10 35 130 15,
  Radio "Item 3 - Dotted Radio", 8, 10 50 130 15,

  Radio "Item 1", 9, 10 140 60 18, group push
  Radio "Item 2", 10, 75 140 60 18, push

  Check "Item 1 - Checkbox", 11, 165 147 120 15
  Check "Item 2 - Checkbox", 12, 165 167 120 15

  Edit "", 13, 10 95 125 22, autohs

  List 14, 155 50 140 80, sort

  Combo 15, 155 10 140 150, drop

  Text "Edit box", 16, 10 120 125 20

  Text "Drop Down Combo Box", 17, 155 32 140 20

  Text "List box", 18, 155 112 140 20
}

for example, in the first row containing "Button", it breaks down like so:

Object_type "Name" ,ID, X Y Width Height,  value

this is relatively simple, and easily coded without the need for java or
javascript. (i mean the script, not the plugin.)

Of course, there will need to be methods for getting values, output, and for
resetting to defaults.

List of features that would be nice:

- ability to spawn child dialogs
- sliders/spinners
- Loading scripts


I'd try -- but I don't know C/C++, and I don't think that Visual Basic would
work for this...


Twyst
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/O d+(-) s-: a-- C+++(++++) UL++ P+(--) L+ E- W+++>$ N++ o- K-
w+(---) O- M-- V- PS+ PE+ Y PGP t 5 X R tv- b++++ DI++ D G++ e h* r-- !y++
------END GEEK CODE BLOCK------
Johannes Hubert wrote in message <36ecc5e6.0@news.povray.org>...
>Ph Gibone wrote in message <36ecbcc9.0@news.povray.org>...
>>

>>>
>>>Uhm.
>>>
>>>Java sucks. End of story. Apart from the fact that Moray doesn't use or
>>>support it.
>>>--
>>
>>
>>Java Exists. End of story
>>
>>Moray doesn't use or support any scripting language so far
>>
>
>
>That's the reason for my previous "Huh?": Java is not a scripting language,
>so I don't really see a good reason to use it here.
>Maybe you mean JavaScript??? (Wouldn't be very useful either, since it is
>mostly web-oriented)
>
>Johannes.
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.